package com.dubbo.zyx.service;

import com.dubbo.zyx.api.UserService;
import com.dubbo.zyx.model.User;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

/**
 * 描述说明: 对外提供服务实现类
 *
 * @author DQing
 * @version 1.0
 * @className UserServiceImpl
 * @date 2020/9/2 16:58
 */
@Service
public class UserServiceImpl implements UserService{

    @Value("${username}")
    private String userName;

    @Override
    public User getUser(String userId) {
        User user = new User();
        user.setUserId(userId);
        user.setUserName(userName);
        return user;
    }
}
